package com.ehome.android_build_plugin

import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.efs.sdk.launch.LaunchManager
import com.umeng.pagesdk.PageManger

class Test : AppCompatActivity() {
    private val TAG = this::class.java.simpleName
    override fun onCreate(savedInstanceState: Bundle?) {
        Log.d(TAG, "$TAG LaunchManager.isInit -> ${LaunchManager.isInit()}")
        LaunchManager.onTracePage(this, LaunchManager.PAGE_ON_CREATE, true)
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test)

    }

    override fun onRestart() {
        LaunchManager.onTracePage(this, LaunchManager.PAGE_ON_RE_START, true)
        super.onRestart()
    }

    override fun onStart() {
        LaunchManager.onTracePage(this, LaunchManager.PAGE_ON_START, true)
        super.onStart()
    }

    override fun onResume() {
        super.onResume()
        LaunchManager.onTracePage(this, LaunchManager.PAGE_ON_RESUME, false)

    }

    override fun onPause() {
        super.onPause()
    }

    override fun onStop() {
        LaunchManager.onTracePage(this, LaunchManager.PAGE_ON_STOP, true)
        super.onStop()
    }
}